<?php

class Product extends Eloquent {
	
	protected $table = "product";
	public $timestamps = false;

	public function supplier()
	{
		return $this->hasOne('Supplier', 'id');
	}

	public function category()
	{
		return $this->belongsTo('Category');
	}

	public function orderitem()
	{
		return $this->belongsTo('OrderItem', 'id');
	}
}
